package com.tanhua.dubbo.api;

import com.tanhua.model.em.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {
    Integer save(Comment comment1);

    List<Comment> findComments(Integer page, Integer pagesize, String movementId, CommentType comment);

    boolean haslike(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);

    Integer saveCommentLikeCount(String userId);

    Integer deleteCommentLikeCount(String userId);

    List<Comment> findByLoveMeComments(Integer page, Integer pagesize, Long userId, CommentType love);
}
